<?php 
class getAdvAction extends AjaxAction{
	public function execute($request){
		$page 				= intval($request->getParameter('page','-1'));
		$limit				= intval($request->getParameter('limit', '-1'));
		$advPage 			= $request->getParameter('advPage','-1');
		$data['list']		= AdvertisesTable::getDataListFrontend(array('positions'=>array($advPage)), $page, $limit);
		$data['attr']		= $request->getParameter('attr','');
		//echo '<pre>';print_r($data);die;
		return $this->renderPartial('getAdv',array('data'=>$data));
	}
}